cmake_minimum_required(VERSION 3.14)
project(app LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

if(MSVC)
    add_compile_options(/EHa- /EHc- /Zc:throwingNew-)
else()
    add_compile_options(-fsanitize=address)
    add_link_options(-fsanitize=address)
endif()


add_executable(${PROJECT_NAME}
    src/main.cpp
)

target_include_directories(${PROJECT_NAME} PRIVATE
    include/
)


